<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>查找对话框</title>
  <link rel="stylesheet" href="./dig-search.css">
</head>
<body>
  <div class="test">
    <input type="button" value="弹出对话框" autofocus>
  </div>
  <script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="//cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
  <script src="dig-search.js"></script>
  <script>
    $(function() {
        var $btnTest = $('div.test>input[type="button"]');

        $btnTest.click(function() {
          $dlgSearch.show(function(content) {
            console.log("点击了查询按钮");
            console.log(content);
            })
          })
    })
  </script>
</body>
</html>
